<? $page_title='供应商价格对比' ?>
<?include "FASHION/page_header.phtml"?>
<div id="printArea" class="horizontal">
<table class="ptop" border="0" cellpadding="4" cellspacing="0" width="100%">
         <thead>
            <tr class="nobg">
                <th><h2><?$print_com_name?></h2></th>
            </tr>
            <tr class="nobg">
                <th><h1><?$page_title?></h1></th>
            </tr>
        </thead>        
    </table>
<table border=0 class="list pcontent" width="100%">
    <thead>
        <tr class="nobg">
                <th rowspan="2">材料编号</th>
                <th rowspan="2">材料名称</th>
                <th rowspan="2">品牌</th>
                <th rowspan="2">规格</th>
                <th rowspan="2">单位</th>
                <th rowspan="2">数量</th>
        <{foreach item=s from=$suppliers}>
                <th colspan="2"><{$s.name}></th>
        <{/foreach}>
                <th rowspan="2">供应商</th>
                <th rowspan="2">备注</th>
        </tr>
        <tr class="nobg">
        <{foreach item=s from=$suppliers}>
                <th>单价</th>
                <th>金額</th>
        <{/foreach}>
        </tr>
</thead>
<tbody>
<{foreach item=s from=$stuffs}>
<tr >
	<td class="nobr"><{$s.sno}></td>
	<td width="80"><{$s.name}></td>
	<td width="80"><{$s.brand}></td>
	<td width="80"><{$s.specific}></td>
	<td class="center"><{$s.unit}></td>
	<td class="decimal"><{$s.amount}></td>
	<{foreach item=sp from=$suppliers}>
		<td class="decimal fnum sp_<{$sp.id}>" ware_id="<{$s.ware_id}>"><{$s.suppliers[$sp.id].quote }></td>
		<td class="decimal fnum sp_<{$sp.id}>" ware_id="<{$s.ware_id}>"><?= $s.suppliers[$sp.id].quote * $s.amount ?></td>
	<{/foreach}>
	<{if $s.supplier_id}>
		<td><{$all_suppliers[$s.supplier_id].name}></td>
		<td><{$s.remark}></td>
	<{else}>
            <td>&nbsp;</td>
	    <td>&nbsp;</td>
	<{/if}>
</tr>
<{/foreach}>
</tbody>
</table>
</div>
<?include "FASHION/page_footer.phtml"?>
